package com.hl.ruoyicsmshop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.ruoyicsmshop.mapper.BusinessClassMapper;
import com.hl.ruoyicsmshop.domain.BusinessClass;
import com.hl.ruoyicsmshop.service.IBusinessClassService;

/**
 * 店铺分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
@Service
public class BusinessClassServiceImpl implements IBusinessClassService 
{
    @Autowired
    private BusinessClassMapper businessClassMapper;

    /**
     * 查询店铺分类
     * 
     * @param id 店铺分类主键
     * @return 店铺分类
     */
    @Override
    public BusinessClass selectBusinessClassById(Long id)
    {
        return businessClassMapper.selectBusinessClassById(id);
    }

    /**
     * 查询店铺分类列表
     * 
     * @param businessClass 店铺分类
     * @return 店铺分类
     */
    @Override
    public List<BusinessClass> selectBusinessClassList(BusinessClass businessClass)
    {
        return businessClassMapper.selectBusinessClassList(businessClass);
    }

    /**
     * 新增店铺分类
     * 
     * @param businessClass 店铺分类
     * @return 结果
     */
    @Override
    public int insertBusinessClass(BusinessClass businessClass)
    {
        return businessClassMapper.insertBusinessClass(businessClass);
    }

    /**
     * 修改店铺分类
     * 
     * @param businessClass 店铺分类
     * @return 结果
     */
    @Override
    public int updateBusinessClass(BusinessClass businessClass)
    {
        return businessClassMapper.updateBusinessClass(businessClass);
    }

    /**
     * 批量删除店铺分类
     * 
     * @param ids 需要删除的店铺分类主键
     * @return 结果
     */
    @Override
    public int deleteBusinessClassByIds(Long[] ids)
    {
        return businessClassMapper.deleteBusinessClassByIds(ids);
    }

    /**
     * 删除店铺分类信息
     * 
     * @param id 店铺分类主键
     * @return 结果
     */
    @Override
    public int deleteBusinessClassById(Long id)
    {
        return businessClassMapper.deleteBusinessClassById(id);
    }
}
